<?php
<object class="Vehicle_Expense_Edit" name="Vehicle_Expense_Edit" baseclass="page">
  <property name="Background"></property>
  <property name="Caption">Vehicle_Expense_Edit</property>
  <property name="Color">#000000</property>
  <property name="DocType">dtNone</property>
  <property name="Height">375</property>
  <property name="IsMaster">0</property>
  <property name="Name">Vehicle_Expense_Edit</property>
  <property name="Width">1079</property>
  <property name="OnCreate">Vehicle_Expense_EditCreate</property>
  <object class="Image" name="Image3" >
    <property name="Border">0</property>
    <property name="Height">30</property>
    <property name="ImageSource">image/edit_expense.png</property>
    <property name="Link"></property>
    <property name="LinkTarget"></property>
    <property name="Name">Image3</property>
    <property name="Top">33</property>
    <property name="Width">966</property>
  </object>
  <object class="HiddenField" name="hiddenVeh" >
    <property name="Height">18</property>
    <property name="Left">494</property>
    <property name="Name">hiddenVeh</property>
    <property name="Top">49</property>
    <property name="Width">200</property>
  </object>
  <object class="HiddenField" name="hiddenExpense" >
    <property name="Height">18</property>
    <property name="Left">659</property>
    <property name="Name">hiddenExpense</property>
    <property name="Top">49</property>
    <property name="Width">200</property>
  </object>
  <object class="Image" name="imgBack" >
    <property name="Autosize">1</property>
    <property name="Border">0</property>
    <property name="Cursor">crPointer</property>
    <property name="Height">45</property>
    <property name="ImageSource">image/btn_back.png</property>
    <property name="Left">1024</property>
    <property name="Link"></property>
    <property name="LinkTarget"></property>
    <property name="Name">imgBack</property>
    <property name="Width">45</property>
    <property name="jsOnMouseOut">imgBackJSMouseOut</property>
    <property name="jsOnMouseOver">imgBackJSMouseOver</property>
  </object>
  <object class="HiddenField" name="compid" >
    <property name="Height">18</property>
    <property name="Left">829</property>
    <property name="Name">compid</property>
    <property name="Tag"></property>
    <property name="Top">49</property>
    <property name="Width">200</property>
  </object>
  <object class="Button" name="btnUpdate" >
    <property name="Caption">Update</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">25</property>
    <property name="Left">29</property>
    <property name="Name">btnUpdate</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">7</property>
    <property name="Top">293</property>
    <property name="Width">75</property>
    <property name="OnClick">btnUpdateClick</property>
  </object>
  <object class="Button" name="btnCancel" >
    <property name="Caption">Cancel</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">25</property>
    <property name="Left">110</property>
    <property name="Name">btnCancel</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">8</property>
    <property name="Top">293</property>
    <property name="Width">75</property>
    <property name="OnClick">btnCancelClick</property>
  </object>
  <object class="Label" name="lblType" >
    <property name="Caption">Expense Type:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">20</property>
    <property name="Name">lblType</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">128</property>
    <property name="Width">85</property>
  </object>
  <object class="ComboBox" name="cmbType" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">104</property>
    <property name="Name">cmbType</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">3</property>
    <property name="Top">124</property>
    <property name="Width">170</property>
  </object>
  <object class="Label" name="lblDate" >
    <property name="Caption">Date:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">69</property>
    <property name="Name">lblDate</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">93</property>
    <property name="Width">35</property>
  </object>
  <object class="DateTimePicker" name="dpDate" >
    <property name="Caption">dpDate</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="IfFormat">%Y-%m-%d</property>
    <property name="Left">104</property>
    <property name="Name">dpDate</property>
    <property name="ParentFont">0</property>
    <property name="ShowsTime">0</property>
    <property name="Top">89</property>
    <property name="Width">170</property>
  </object>
  <object class="Label" name="lblDescription" >
    <property name="Caption">Description:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">144</property>
    <property name="Name">lblDescription</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">344</property>
    <property name="Visible">0</property>
    <property name="Width">72</property>
  </object>
  <object class="ComboBox" name="cmbDescription" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">216</property>
    <property name="Name">cmbDescription</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder"></property>
    <property name="Top">342</property>
    <property name="Visible">0</property>
    <property name="Width">465</property>
  </object>
  <object class="Label" name="lblComments" >
    <property name="Caption">Description:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">35</property>
    <property name="Name">lblComments</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">191</property>
    <property name="Width">69</property>
  </object>
  <object class="Memo" name="memoComments" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">89</property>
    <property name="Left">104</property>
    <property name="Lines">a:0:{}</property>
    <property name="Name">memoComments</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">6</property>
    <property name="Top">189</property>
    <property name="Width">465</property>
  </object>
  <object class="CheckBox" name="chkBusiness" >
    <property name="Caption">Business</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">306</property>
    <property name="Name">chkBusiness</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder"></property>
    <property name="Top">33</property>
    <property name="Visible">0</property>
    <property name="Width">81</property>
  </object>
  <object class="Label" name="lblAmount" >
    <property name="Caption">*Amount:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">313</property>
    <property name="Name">lblAmount</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">128</property>
    <property name="Width">53</property>
  </object>
  <object class="Edit" name="edAmount" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">375</property>
    <property name="Name">edAmount</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">5</property>
    <property name="Top">124</property>
    <property name="Width">194</property>
    <property name="jsOnBlur">edAmountJSBlur</property>
    <property name="jsOnKeyUp">edAmountJSKeyUp</property>
  </object>
  <object class="Label" name="lblAccount" >
    <property name="Caption">Account:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">321</property>
    <property name="Name">lblAccount</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">93</property>
    <property name="Width">51</property>
  </object>
  <object class="ComboBox" name="cmbAccount" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">375</property>
    <property name="Name">cmbAccount</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">1</property>
    <property name="Top">89</property>
    <property name="Width">194</property>
  </object>
  <object class="Button" name="btnShowType" >
    <property name="ButtonType">btNormal</property>
    <property name="Caption">+</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Align">taCenter</property>
        <property name="Color">#FFFFFF</property>
        <property name="Size">10</property>
    </property>
    <property name="Height">19</property>
    <property name="Hint">add expense type</property>
    <property name="Left">274</property>
    <property name="Name">btnShowType</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="ParentShowHint">0</property>
    <property name="ShowHint">1</property>
    <property name="TabOrder">4</property>
    <property name="Top">124</property>
    <property name="Width">20</property>
    <property name="jsOnClick">btnShowTypeJSClick</property>
  </object>
  <object class="Button" name="btnShowAccount" >
    <property name="ButtonType">btNormal</property>
    <property name="Caption">+</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Align">taCenter</property>
        <property name="Color">#FFFFFF</property>
        <property name="Size">10</property>
    </property>
    <property name="Height">19</property>
    <property name="Hint">add expense account</property>
    <property name="Left">567</property>
    <property name="Name">btnShowAccount</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="ParentShowHint">0</property>
    <property name="ShowHint">1</property>
    <property name="TabOrder">2</property>
    <property name="Top">89</property>
    <property name="Width">20</property>
    <property name="jsOnClick">btnShowAccountJSClick</property>
  </object>
  <object class="Button" name="btnShowDesc" >
    <property name="ButtonType">btNormal</property>
    <property name="Caption">+</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Align">taCenter</property>
        <property name="Color">#FFFFFF</property>
        <property name="Size">10</property>
    </property>
    <property name="Height">19</property>
    <property name="Hint">add expense description</property>
    <property name="Left">679</property>
    <property name="Name">btnShowDesc</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="ParentShowHint">0</property>
    <property name="ShowHint">1</property>
    <property name="TabOrder">7</property>
    <property name="Top">342</property>
    <property name="Visible">0</property>
    <property name="Width">20</property>
    <property name="jsOnClick">btnShowDescJSClick</property>
  </object>
  <object class="HiddenField" name="hfError" >
    <property name="Height">18</property>
    <property name="Left">20</property>
    <property name="Name">hfError</property>
    <property name="Top">5</property>
    <property name="Width">128</property>
  </object>
  <object class="JTJavaScript" name="JSValidate" >
    <property name="Code"><![CDATA[function validateRequire(editBox, lblError)
{
 editValue = document.getElementById(editBox).value;
 //error = Number(document.getElementById('hfValidateError').value);
 if(editValue.length==0)
 {
  //alert('error');
  lblValue = document.getElementById(lblError).innerHTML = '&amp;darr; This field is required &amp;darr;';
  //alert(document.getElementById('hfValidateError').value); 
  //document.getElementById('hfValidateError').value = error + Number('1');
  //alert(document.getElementById('hfValidateError').value);
  //alert('error end');
 }
 else
 {
  lblValue = document.getElementById(lblError).innerHTML = '';
 }
}]]></property>
    <property name="Height">20</property>
    <property name="Left">147</property>
    <property name="Name">JSValidate</property>
    <property name="Top">3</property>
    <property name="Width">180</property>
  </object>
  <object class="Label" name="lblamt" >
    <property name="Caption">lblamt</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Align">taCenter</property>
        <property name="Color">#FF0000</property>
    </property>
    <property name="Height">11</property>
    <property name="Left">375</property>
    <property name="Name">lblamt</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">110</property>
    <property name="Width">194</property>
  </object>
  <object class="Label" name="Label12" >
    <property name="Caption">* = Required Fields</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#DD0000</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">10</property>
    <property name="Name">Label12</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">68</property>
    <property name="Width">115</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript1" >
    <property name="Code"><![CDATA[function AjaxType2(ex,compid)
{
var httpxml;
try
  {
  // Firefox, Opera 8.0+, Safari
  httpxml=new XMLHttpRequest();
  }
  catch (e)
  {
  // Internet Explorer
  try
  {
  httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
  }
  catch (e)
  {
  try
  {
  httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  }
  catch (e)
  {
  alert(&quot;Your browser does not support AJAX!&quot;);
  return false;
  }
  }
  }
  function stateck()
  {
  if(httpxml.readyState==4)
  {
  //eval(httpxml.responseText);
  AjaxType('expensetypeajax.php','cmbType',compid);
  AjaxType('expensetypeajax.php','listType',compid);

  }
  }
  var url='addexpensetypeajax.php';
  url=url+&quot;?val=&quot;+ex;
  url=url+&quot;&amp;compid=&quot;+compid;
  httpxml.onreadystatechange=stateck;
  httpxml.open(&quot;GET&quot;,url,true);
  httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">702</property>
    <property name="Name">JTJavaScript1</property>
    <property name="Top">70</property>
    <property name="Width">180</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript2" >
    <property name="Code"><![CDATA[function AjaxType(urlget,elemidtochange,compid)
{
var httpxml;
try
{
// Firefox, Opera 8.0+, Safari
httpxml=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
}
catch (e)
{
try
{
httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
}
catch (e)
{
alert(&quot;Your browser does not support AJAX!&quot;);
return false;
}
}
}
function stateck()
{
if(httpxml.readyState==4)
{
var myarray=eval(httpxml.responseText);
// Before adding new we must remove previously loaded elements
for(j=document.getElementById(elemidtochange).options.length-1;j&gt;=0;j--)
{
document.getElementById(elemidtochange).remove(j);
}
for (i=0;i&lt;myarray.length;i++)
{
var objDropdown = document.getElementById(elemidtochange);
var objOption = new Option(myarray[i][0],myarray[i][1]);
objDropdown.options[objDropdown.length] = objOption;
}
}
}
var url=urlget;
url=url+&quot;?compider=&quot;+compid;
httpxml.onreadystatechange=stateck;
httpxml.open(&quot;GET&quot;,url,true);
httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">702</property>
    <property name="Name">JTJavaScript2</property>
    <property name="Top">87</property>
    <property name="Width">180</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript3" >
    <property name="Code"><![CDATA[function AjaxType3(ex,compid)
{
var httpxml;
try
{
// Firefox, Opera 8.0+, Safari
httpxml=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
}
catch (e)
{
try
{
httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
}
catch (e)
{
alert(&quot;Your browser does not support AJAX!&quot;);
return false;
}
}
}
function stateck()
{
if(httpxml.readyState==4)
{
//eval(httpxml.responseText);
//alert(ex+&quot;,&quot;+compid);
AjaxType('expensetypeajax.php','cmbType',compid);
AjaxType('expensetypeajax.php','listType',compid);
}
}
var url='delexpenseajax.php';
url=url+&quot;?val=&quot;+ex;
//url=url+&quot;&amp;id=&quot;+id;
url=url+&quot;&amp;compid=&quot;+compid;
httpxml.onreadystatechange=stateck;
httpxml.open(&quot;GET&quot;,url,true);
httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">702</property>
    <property name="Name">JTJavaScript3</property>
    <property name="Top">108</property>
    <property name="Width">180</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript7" >
    <property name="Code"><![CDATA[function AjaxDesc2(de,compid)
{
var httpxml;
try
  {
  // Firefox, Opera 8.0+, Safari
  httpxml=new XMLHttpRequest();
  }
  catch (e)
  {
  // Internet Explorer
  try
  {
  httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
  }
  catch (e)
  {
  try
  {
  httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  }
  catch (e)
  {
  alert(&quot;Your browser does not support AJAX!&quot;);
  return false;
  }
  }
  }
  function stateck()
  {
  if(httpxml.readyState==4)
  {
  //eval(httpxml.responseText);
  AjaxDesc('exdescriptionajax.php','cmbDescription',compid);
  AjaxDesc('exdescriptionajax.php','listDesc',compid);

  }
  }
  var url='addexdescriptionajax.php';
  url=url+&quot;?val=&quot;+de;
  url=url+&quot;&amp;compid=&quot;+compid;
  httpxml.onreadystatechange=stateck;
  httpxml.open(&quot;GET&quot;,url,true);
  httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">884</property>
    <property name="Name">JTJavaScript7</property>
    <property name="Top">70</property>
    <property name="Width">180</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript8" >
    <property name="Code"><![CDATA[function AjaxDesc(urlget,elemidtochange,compid)
{
var httpxml;
try
{
// Firefox, Opera 8.0+, Safari
httpxml=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
}
catch (e)
{
try
{
httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
}
catch (e)
{
alert(&quot;Your browser does not support AJAX!&quot;);
return false;
}
}
}
function stateck()
{
if(httpxml.readyState==4)
{
var myarray=eval(httpxml.responseText);
// Before adding new we must remove previously loaded elements
for(j=document.getElementById(elemidtochange).options.length-1;j&gt;=0;j--)
{
document.getElementById(elemidtochange).remove(j);
}
for (i=0;i&lt;myarray.length;i++)
{
var objDropdown = document.getElementById(elemidtochange);
var objOption = new Option(myarray[i][0],myarray[i][1]);
objDropdown.options[objDropdown.length] = objOption;
}
}
}
var url=urlget;
url=url+&quot;?compider=&quot;+compid;
httpxml.onreadystatechange=stateck;
httpxml.open(&quot;GET&quot;,url,true);
httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">884</property>
    <property name="Name">JTJavaScript8</property>
    <property name="Top">87</property>
    <property name="Width">180</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript9" >
    <property name="Code"><![CDATA[function AjaxDesc3(de,compid)
{
var httpxml;
try
  {
  // Firefox, Opera 8.0+, Safari
  httpxml=new XMLHttpRequest();
  }
  catch (e)
  {
  // Internet Explorer
  try
  {
  httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
  }
  catch (e)
  {
  try
  {
  httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  }
  catch (e)
  {
  alert(&quot;Your browser does not support AJAX!&quot;);
  return false;
  }
  }
  }
  function stateck()
  {
  if(httpxml.readyState==4)
  {
  //eval(httpxml.responseText);
  AjaxDesc('exdescriptionajax.php','cmbDescription',compid);
  AjaxDesc('exdescriptionajax.php','listDesc',compid);
  }
  }
  var url='delexdescriptionajax.php';
  url=url+&quot;?val=&quot;+de;
  url=url+&quot;&amp;compid=&quot;+compid;
  httpxml.onreadystatechange=stateck;
  httpxml.open(&quot;GET&quot;,url,true);
  httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">884</property>
    <property name="Name">JTJavaScript9</property>
    <property name="Top">105</property>
    <property name="Width">180</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript4" >
    <property name="Code"><![CDATA[function AjaxAccount2(ac,compid)
{
var httpxml;
try
  {
  // Firefox, Opera 8.0+, Safari
  httpxml=new XMLHttpRequest();
  }
  catch (e)
  {
  // Internet Explorer
  try
  {
  httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
  }
  catch (e)
  {
  try
  {
  httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  }
  catch (e)
  {
  alert(&quot;Your browser does not support AJAX!&quot;);
  return false;
  }
  }
  }
  function stateck()
  {
  if(httpxml.readyState==4)
  {
  //eval(httpxml.responseText);
  AjaxAccount('exaccountajax.php','cmbAccount',compid);
  AjaxAccount('exaccountajax.php','listAccount',compid);

  }
  }
  var url='addexaccountajax.php';
  url=url+&quot;?val=&quot;+ac;
  url=url+&quot;&amp;compid=&quot;+compid;
  httpxml.onreadystatechange=stateck;
  httpxml.open(&quot;GET&quot;,url,true);
  httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">702</property>
    <property name="Name">JTJavaScript4</property>
    <property name="Top">143</property>
    <property name="Width">180</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript5" >
    <property name="Code"><![CDATA[function AjaxAccount(urlget,elemidtochange,compid)
{
var httpxml;
try
{
// Firefox, Opera 8.0+, Safari
httpxml=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
}
catch (e)
{
try
{
httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
}
catch (e)
{
alert(&quot;Your browser does not support AJAX!&quot;);
return false;
}
}
}
function stateck()
{
if(httpxml.readyState==4)
{
var myarray=eval(httpxml.responseText);
// Before adding new we must remove previously loaded elements
for(j=document.getElementById(elemidtochange).options.length-1;j&gt;=0;j--)
{
document.getElementById(elemidtochange).remove(j);
}
for (i=0;i&lt;myarray.length;i++)
{
var objDropdown = document.getElementById(elemidtochange);
var objOption = new Option(myarray[i][0],myarray[i][1]);
objDropdown.options[objDropdown.length] = objOption;
}
}
}
var url=urlget;
url=url+&quot;?compider=&quot;+compid;
httpxml.onreadystatechange=stateck;
httpxml.open(&quot;GET&quot;,url,true);
httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">702</property>
    <property name="Name">JTJavaScript5</property>
    <property name="Top">162</property>
    <property name="Width">180</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript6" >
    <property name="Code"><![CDATA[function AjaxAccount3(ac,compid)
{
var httpxml;
try
  {
  // Firefox, Opera 8.0+, Safari
  httpxml=new XMLHttpRequest();
  }
  catch (e)
  {
  // Internet Explorer
  try
  {
  httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
  }
  catch (e)
  {
  try
  {
  httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  }
  catch (e)
  {
  alert(&quot;Your browser does not support AJAX!&quot;);
  return false;
  }
  }
  }
  function stateck()
  {
  if(httpxml.readyState==4)
  {
  //eval(httpxml.responseText);
  AjaxAccount('exaccountajax.php','cmbAccount',compid);
  AjaxAccount('exaccountajax.php','listAccount',compid);
  }
  }
  var url='delexaccountajax.php';
  url=url+&quot;?val=&quot;+ac;
  url=url+&quot;&amp;compid=&quot;+compid;
  httpxml.onreadystatechange=stateck;
  httpxml.open(&quot;GET&quot;,url,true);
  httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">702</property>
    <property name="Name">JTJavaScript6</property>
    <property name="Top">181</property>
    <property name="Width">180</property>
  </object>
  <object class="JTDivWindow" name="JTDivDesc" >
    <property name="AnchorsWorkaround">--Workaround--</property>
    <property name="BorderIcons">
        <property name="Help">0</property>
        <property name="Maximize">0</property>
        <property name="Minimize">0</property>
    </property>
    <property name="BorderStyle">bsSingle</property>
    <property name="Caption">Description</property>
    <property name="Height">251</property>
    <property name="Left">709</property>
    <property name="Name">JTDivDesc</property>
    <property name="Position">poBrowserCenter</property>
    <property name="SiteTheme"></property>
    <property name="Top">116</property>
    <property name="Width">320</property>
    <object class="JTGroupBox" name="JTGroupBox3" >
      <property name="AnchorsWorkaround">--Workaround--</property>
      <property name="Height">202</property>
      <property name="Left">17</property>
      <property name="Name">JTGroupBox3</property>
      <property name="SiteTheme"></property>
      <property name="Top">32</property>
      <property name="Width">286</property>
      <object class="ListBox" name="listDesc" >
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">153</property>
        <property name="Items">a:0:{}</property>
        <property name="Left">12</property>
        <property name="Name">listDesc</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">43</property>
        <property name="Width">201</property>
      </object>
      <object class="Edit" name="edDesc" >
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">21</property>
        <property name="Left">12</property>
        <property name="Name">edDesc</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="TabOrder"></property>
        <property name="Top">17</property>
        <property name="Width">201</property>
      </object>
      <object class="Button" name="btnDelDesc" >
        <property name="ButtonType">btNormal</property>
        <property name="Caption">Delete</property>
        <property name="Color">#000000</property>
        <property name="Cursor">crPointer</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">25</property>
        <property name="Left">218</property>
        <property name="Name">btnDelDesc</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">171</property>
        <property name="Width">60</property>
        <property name="jsOnClick">btnDelDescJSClick</property>
      </object>
      <object class="Button" name="btnAddDesc" >
        <property name="ButtonType">btNormal</property>
        <property name="Caption">Add</property>
        <property name="Color">#000000</property>
        <property name="Cursor">crPointer</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">25</property>
        <property name="Left">218</property>
        <property name="Name">btnAddDesc</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">17</property>
        <property name="Width">60</property>
        <property name="jsOnClick">btnAddDescJSClick</property>
      </object>
    </object>
  </object>
  <object class="JTDivWindow" name="JTDivType" >
    <property name="AnchorsWorkaround">--Workaround--</property>
    <property name="BorderIcons">
        <property name="Help">0</property>
        <property name="Maximize">0</property>
        <property name="Minimize">0</property>
    </property>
    <property name="BorderStyle">bsSingle</property>
    <property name="Caption">Expense Type</property>
    <property name="Height">251</property>
    <property name="Left">729</property>
    <property name="Name">JTDivType</property>
    <property name="Position">poBrowserCenter</property>
    <property name="SiteTheme"></property>
    <property name="Top">114</property>
    <property name="Width">320</property>
    <object class="JTGroupBox" name="JTGroupBox1" >
      <property name="AnchorsWorkaround">--Workaround--</property>
      <property name="Height">202</property>
      <property name="Left">17</property>
      <property name="Name">JTGroupBox1</property>
      <property name="SiteTheme"></property>
      <property name="Top">32</property>
      <property name="Width">286</property>
      <object class="ListBox" name="listType" >
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">153</property>
        <property name="Items">a:0:{}</property>
        <property name="Left">12</property>
        <property name="Name">listType</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">43</property>
        <property name="Width">201</property>
      </object>
      <object class="Edit" name="edType" >
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">21</property>
        <property name="Left">12</property>
        <property name="Name">edType</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">17</property>
        <property name="Width">201</property>
      </object>
      <object class="Button" name="btnDelType" >
        <property name="ButtonType">btNormal</property>
        <property name="Caption">Delete</property>
        <property name="Color">#000000</property>
        <property name="Cursor">crPointer</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">25</property>
        <property name="Left">218</property>
        <property name="Name">btnDelType</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">170</property>
        <property name="Width">60</property>
        <property name="jsOnClick">btnDelTypeJSClick</property>
      </object>
      <object class="Button" name="btnAddType" >
        <property name="ButtonType">btNormal</property>
        <property name="Caption">Add</property>
        <property name="Color">#000000</property>
        <property name="Cursor">crPointer</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">25</property>
        <property name="Left">218</property>
        <property name="Name">btnAddType</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">17</property>
        <property name="Width">60</property>
        <property name="jsOnClick">btnAddTypeJSClick</property>
      </object>
    </object>
  </object>
  <object class="JTDivWindow" name="JTDivAccount" >
    <property name="AnchorsWorkaround">--Workaround--</property>
    <property name="BorderIcons">
        <property name="Help">0</property>
        <property name="Maximize">0</property>
        <property name="Minimize">0</property>
    </property>
    <property name="BorderStyle">bsSingle</property>
    <property name="Caption">Account</property>
    <property name="Height">251</property>
    <property name="Left">759</property>
    <property name="Name">JTDivAccount</property>
    <property name="Position">poBrowserCenter</property>
    <property name="SiteTheme"></property>
    <property name="Top">114</property>
    <property name="Width">320</property>
    <object class="JTGroupBox" name="JTGroupBox2" >
      <property name="AnchorsWorkaround">--Workaround--</property>
      <property name="Height">202</property>
      <property name="Left">17</property>
      <property name="Name">JTGroupBox2</property>
      <property name="SiteTheme"></property>
      <property name="Top">32</property>
      <property name="Width">286</property>
      <object class="ListBox" name="listAccount" >
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">153</property>
        <property name="Items">a:0:{}</property>
        <property name="Left">12</property>
        <property name="Name">listAccount</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">43</property>
        <property name="Width">201</property>
      </object>
      <object class="Edit" name="edAccount" >
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">21</property>
        <property name="Left">12</property>
        <property name="Name">edAccount</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">17</property>
        <property name="Width">201</property>
      </object>
      <object class="Button" name="btnDelAccount" >
        <property name="ButtonType">btNormal</property>
        <property name="Caption">Delete</property>
        <property name="Color">#000000</property>
        <property name="Cursor">crPointer</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">25</property>
        <property name="Left">218</property>
        <property name="Name">btnDelAccount</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">171</property>
        <property name="Width">60</property>
        <property name="jsOnClick">btnDelAccountJSClick</property>
      </object>
      <object class="Button" name="btnAddAccount" >
        <property name="ButtonType">btNormal</property>
        <property name="Caption">Add</property>
        <property name="Color">#000000</property>
        <property name="Cursor">crPointer</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">25</property>
        <property name="Left">218</property>
        <property name="Name">btnAddAccount</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">17</property>
        <property name="Width">60</property>
        <property name="jsOnClick">btnAddAccountJSClick</property>
      </object>
    </object>
  </object>
  <object class="Label" name="lblVendor" >
    <property name="Caption">Vendor:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">58</property>
    <property name="Name">lblVendor</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">159</property>
    <property name="Width">43</property>
  </object>
  <object class="ComboBox" name="cmbVendor" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">104</property>
    <property name="Name">cmbVendor</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">4</property>
    <property name="Top">155</property>
    <property name="Width">465</property>
  </object>
  <object class="JTSiteTheme" name="JTSiteTheme1" >
        <property name="Left">687</property>
        <property name="Top">0</property>
    <property name="Name">JTSiteTheme1</property>
    <property name="Theme">black</property>
  </object>
</object>
?>
